package frontend.pages.reports.charismasynch;

import frontend.pages.reports.base.AbstractReportPage;
import frontend.pages.reports.base.AbstractReportPanel;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.wicketstuff.annotation.mount.MountPath;

import static shared.other.UserRolesDefinition.ADMIN_ROLE_KEY;
import static shared.other.UserRolesDefinition.EMPLOYEE_ROLE_KEY;
import static shared.other.UserRolesDefinition.FOREMAN_ROLE_KEY;

@MountPath("charismaSync")
@AuthorizeInstantiation(value = {EMPLOYEE_ROLE_KEY, FOREMAN_ROLE_KEY, ADMIN_ROLE_KEY})
public class CharismaSynchronizationPage extends AbstractReportPage {

    public CharismaSynchronizationPage() {
        super("pages.charismaReport.contextualHelp");
    }


    @Override
    protected AbstractReportPanel getReportPanel() {
        return new CharismaSynchronizationPanel("reportPanel");
    }
}
